import { ActionReducerMap  } from '@ngrx/store';
import { RouterReducerState, routerReducer } from '@ngrx/router-store';

import { RouterStateUrl, CustomSerializer } from './router-state.reducer';
import { layoutSiderReducer, LayoutSiderState } from './layout-sider.reducer';
import { UserState, userReducer } from './user.reducer';


export * from './router-state.reducer';
export * from './layout-sider.reducer';
export * from './user.reducer';


export interface State {
    routerReducer: RouterReducerState<RouterStateUrl>;
    layoutSiderReducer: LayoutSiderState,
    user: UserState
}

export const reducers: ActionReducerMap<State> = {
    routerReducer: routerReducer,
    layoutSiderReducer: layoutSiderReducer,
    user: userReducer
};
